package book.account;

public class Array {
	
	public static void main(String[] args) {
		String[] pets = {"dog", "cat", "bird"};
		
		int petsLength = pets.length;
		
		for(int i = 0; i < petsLength; i++) {
			
			int randomIndex = (int)(Math.random() * petsLength);
			System.out.println("I like " + pets[randomIndex]);
		}
	}
}
